package com.gxaedu.rbac.controller;

import com.gxaedu.rbac.dto.ResultData;
import com.gxaedu.rbac.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author:Teacher黄
 * @date:Created at 2020/04/21
 */
@RestController
public class MenuController {

    @Autowired
    private MenuService menuService;

    /**
     * 获取菜单的方法
     * @param request
     * @return
     */
    @PostMapping("/menu")
    public ResultData getMenu(HttpServletRequest request){
        return menuService.getMenu(request);
    }

}
